<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Vote
 * @copyright  Copyright 2011 KEENONWEB LLC
 * @license    http://www.keenonweb.com/
 * @version    $Id: index.tpl 2011-03-09 01:11:30 idris $
 * @author     Idris
 */
?>

<script type="text/javascript">
en4.core.runonce.add(function(){
  en4.vote.participantsTab.url = '<?php echo $this->url(array("action" => "pagination", "controller" => "vote"), "vote_general"); ?>';
  en4.vote.participantsTab.params.challenge_id = <?php echo (int)$this->subject->getIdentity(); ?>;
  en4.vote.participantsTab.init();
});
</script>

<div class="filter-box">

  <div class="tabs">
    <ul class="navigation">
      <li class="active">
        <a href="javascript:void(0)" id="browse-participant-newest"><?php echo $this->translate('Newest'); ?></a>
      </li>
      <li>
        <a href="javascript:void(0)" id="browse-participant-most-popular"><?php echo $this->translate('Most Popular'); ?></a>
      </li>
      <li>
        <a href="javascript:void(0)" id="browse-participant-most-rated"><?php echo $this->translate('Most Rated'); ?></a>
      </li>
    </ul>
  </div>

  <div id="vote-participants-loader" class="vote-loader hidden">
    <?php echo $this->htmlImage($this->baseUrl() . '/application/modules/Kowcore/externals/images/loader.gif'); ?>
  </div>
  
  <div class="clr"></div>

</div>

<div class="participant-container" id="participant-container">
  <?php echo $this->render($this->subject->type . '/participants.tpl'); ?>
</div>